#pragma once
#include <QReadWriteLock>


class CHBAutoReadLock
{
public:
	CHBAutoReadLock(const QReadWriteLock& locker);
	~CHBAutoReadLock();

private:
	const QReadWriteLock&	m_locker;
};

class CHBAutoWriteLock
{
public:
	CHBAutoWriteLock(const QReadWriteLock& locker);
	~CHBAutoWriteLock();

private:
	const QReadWriteLock&	m_locker;
};
